﻿<baseClass:Control xmlns:baseClass="clr-namespace:EFS.RC.CCAdmin.Common" xmlns:my1="clr-namespace:EFS.Common.UI.Controls.Menu;assembly=EFS.Common.UI"  xmlns:my="clr-namespace:EFS.Common.UI.Controls;assembly=EFS.Common.UI"  x:Class="EFS.RC.CCAdmin.Surveys.Survey.Edit"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:my2="clr-namespace:EFS.RC.CCAdmin.Surveys.Category"
	xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    mc:Ignorable="d"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" Loaded="Control_Loaded">

	<Grid MinHeight="300" MinWidth="800">
		<my:Header HorizontalAlignment="Stretch" Name="controlHeader" VerticalAlignment="Top" Height="95" Text="Monitoring" />
		<Border Background="#FF585858" Margin="0,95,0,0" Height="1" VerticalAlignment="Top" />
		<Grid Margin="0,96,0,0">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"></ColumnDefinition>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"></RowDefinition>
				<RowDefinition Height="Auto"></RowDefinition>
				<RowDefinition Height="Auto"></RowDefinition>
				<RowDefinition Height="Auto"></RowDefinition>
				<RowDefinition Height="Auto"></RowDefinition>
			</Grid.RowDefinitions>
			<Grid.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="White" Offset="0.64" />
					<GradientStop Color="WhiteSmoke" Offset="1" />
				</LinearGradientBrush>
			</Grid.Background>
			<toolkit:DockPanel Grid.Column="0" Grid.Row="0" Height="Auto" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="dockPanel1" VerticalAlignment="Top" Width="Auto" >
				<sdk:Label  HorizontalAlignment="Left" Name="labelSurveyName" Content="Name:" Margin="10,5,0,0" VerticalAlignment="Center" />
				<TextBox Name="textBoxSurveyName" VerticalAlignment="Center" Margin="5,10,5,0" Width="740" HorizontalAlignment="Right"/>
				<CheckBox Name="checkBoxTemplate" Content="Template" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="0,0,5,0" />
			</toolkit:DockPanel>
			<Grid Grid.Column="0" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto"></ColumnDefinition>
					<ColumnDefinition Width="Auto"></ColumnDefinition>
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto"></RowDefinition>
					<RowDefinition Height="Auto"></RowDefinition>
				</Grid.RowDefinitions>

				<sdk:Label Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Name="labelType" Content="Type:" Margin="10,5,0,0" VerticalAlignment="Center" />
				<toolkit:DockPanel Grid.Row="0" Grid.Column="1" Height="Auto" HorizontalAlignment="Stretch" Margin="0,5,0,0" Name="dockPanelType" VerticalAlignment="Center" Width="Auto" >
					<ComboBox Name="comboboxType" VerticalAlignment="Center" HorizontalAlignment="Left" Width="Auto"/>
				</toolkit:DockPanel>

				<sdk:Label Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left" Name="labelReviewType" Content="Review Type:" Margin="10,5,0,0" VerticalAlignment="Center" />
				<toolkit:DockPanel Grid.Row="1" Grid.Column="1" Height="Auto" HorizontalAlignment="Stretch" Margin="0,5,0,0" Name="dockPanelReviewType" VerticalAlignment="Center" Width="Auto" >
					<ComboBox Name="comboboxReviewType" VerticalAlignment="Center" HorizontalAlignment="Left" Width="Auto"/>
				</toolkit:DockPanel>
			</Grid>
			<toolkit:DockPanel Grid.Column="0" Grid.Row="3" Height="Auto" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="dockPanelCreateFromTemplate" VerticalAlignment="Top" Width="Auto" >
				<sdk:Label  HorizontalAlignment="Left" Name="label" Content="Template:" Margin="10,5,0,0" VerticalAlignment="Center" />
				<ComboBox Name="cbTemplates" Margin="5,10,5,0" VerticalAlignment="Center" Height="27" 
					 ItemsSource="{Binding Path=Name}" 
					  SelectedValue="{Binding Path=ID}" 
					  DisplayMemberPath="Name" SelectedValuePath="ID"/>
			</toolkit:DockPanel>
			<toolkit:DockPanel Grid.Column="0" Grid.Row="4" MinHeight="500" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="dockPanelCategoryList" VerticalAlignment="Stretch" Width="Auto" >
				<my2:List x:Name="surveyCategoriesList" HorizontalAlignment="Stretch" Margin="6,10,0,0" VerticalAlignment="Stretch" />
			</toolkit:DockPanel>
		</Grid>
	</Grid>
</baseClass:Control>